home *** CD-ROM | disk | FTP | other *** search
- global gCurrentScreen, gImageChannel, glCurrentListData, gListObject, gPathSymbol, filePath, gsize, gexportlistswitch, gprintlistimages, gLoadTime, gPointerChannel, gLabelChannel, gLineChannel
-
- on enterFrame me
- gCurrentScreen = the frameLabel
- end
-
- on prepareFrame
- if gexportlistswitch = 1 then
- gexportlistswitch = 0
- sprite(gImageChannel).visible = 0
- updateStage()
- repeat with x = 1 to glCurrentListData.count
- if the platform contains "Mac" then
- image = new(xtra("DirectImage"), 241040691)
- else
- image = new(xtra("DirectImage"), 236558701)
- end if
- value(gListObject).plImageData = getAt(glCurrentListData, x)
- listprop = value(gListObject).plImageData.getPropAt(1)
- figurename = listprop.char[6..listprop.char.count]
- if figurename.char[1] = "z" then
- sprite(296).visible = 1
- sprite(gImageChannel).loc = point(618, 384)
- sprite(gImageChannel).visible = 1
- updateStage()
- RestoreAnimationToExport()
- baCopyFile(the moviePath & "Images" & gPathSymbol & figurename & ".mpg", filePath & "-" & x & ".mpg", "always")
- else
- LoadImageDefinition()
- RestoreImageToExport()
- sprite(gImageChannel).loc = point(512, 384)
- sprite(gImageChannel).visible = 1
- sprite(294).visible = 1
- sprite(295).visible = 1
- sprite(296).visible = 0
- sprite(252).visible = 0
- sprite(253).visible = 0
- updateStage()
- set the stageColor to the stageColor
- member("Screen Capture").picture = (the stage).picture
- put "imageLoadFromMember", x
- imageLoadFromMember(image, member("Screen Capture", 1))
- if gsize = "small" then
- imageMinify(image)
- end if
- imageSaveToFile(image, "JPG:" & filePath & "-" & x & ".jpg", 100, 1, 1)
- sprite(296).visible = 1
- sprite(252).visible = 1
- sprite(253).visible = 1
- sprite(294).visible = 0
- sprite(295).visible = 0
- updateStage()
- end if
- forget(image)
- end repeat
- loadTime = the timer / 60.0
- gLoadTime = ((gLoadTime * 4) + (loadTime / glCurrentListData.count)) / 5.0
- go("PFlist")
- updateStage()
- end if
- if gprintlistimages = 1 then
- gprintlistimages = 0
- doc = new(xtra("PrintOMatic"))
- setMargins(doc, rect(36, 36, 36, 36))
- setLandscapeMode(doc, 1)
- newPage(doc)
- firstpageswitch = 1
- if 1 then
- sprite(gPointerChannel).loc = point(-200, 463)
- sprite(293).member = "pointer button"
- sprite(294).visible = 1
- sprite(295).visible = 1
- sprite(296).visible = 1
- sprite(252).visible = 1
- sprite(253).visible = 1
- updateStage()
- repeat with labelNum = gLabelChannel to gLabelChannel + 99
- sprite(labelNum).visible = 0
- end repeat
- repeat with x = 1 to glCurrentListData.count
- value(gListObject).plImageData = getAt(glCurrentListData, x)
- listprop = value(gListObject).plImageData.getPropAt(1)
- figurename = listprop.char[6..listprop.char.count]
- if figurename.char[1] = "z" then
- animationalertswitch = 1
- next repeat
- end if
- if firstpageswitch = 0 then
- newPage(doc)
- end if
- firstpageswitch = 0
- RestoreImageToExport()
- sprite(294).visible = 1
- sprite(295).visible = 1
- updateStage()
- set the stageColor to the stageColor
- member("Screen Capture").picture = (the stage).picture
- drawPicture(doc, member("Screen Capture"), rect(70, 0, 720, 540), 1)
- sprite(294).visible = 0
- sprite(295).visible = 0
- sprite(296).visible = 0
- sprite(252).visible = 0
- sprite(253).visible = 0
- updateStage()
- end repeat
- if doJobSetup(doc) = 1 then
- if the optionDown then
- printPreview(doc)
- else
- print(doc)
- end if
- if animationalertswitch = 1 then
- animationalertswitch = 0
- alert("The animation(s) included in the list cannot be printed.")
- end if
- end if
- doc = 0
- loadTime = the timer / 60.0
- gLoadTime = ((gLoadTime * 4) + (loadTime / glCurrentListData.count)) / 5.0
- end if
- end if
- end
-